﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AvantGameMachine.Graphics
{
    public struct Box
    {
        private float x;
        private float y;
        private float x1;
        private float y1;

        public Box(float _x,float _y,float _x1,float _y1)
        {
            x = _x;
            y = _y;
            x1 = _x1;
            y1 = _y1;
        }

        public float X
        {
            get { return x; }
            set { x = value; }
        }

        public float Y
        {
            get { return y; }
            set { y = value; }
        }

        public float X1
        {
            get { return x1; }
            set { x1 = value; }
        }

        public float Y1
        {
            get { return y1; }
            set { y1 = value; }
        }

        public int XInt
        {
            get { return (int)x; }
        }

        public int YInt
        {
            get { return (int)y; }
        }

        public int X1Int
        {
            get { return (int)x1; }
        }

        public int Y1Int
        {
            get { return (int)y1; }
        }

        public float XDistance
        {
            get { return x1 - x; }
        }

        public float YDistance
        {
            get { return y1 - y; }
        }

        public int XDistanceInt
        {
            get { return (int)(x1 - x); }
        }

        public int YDistanceInt
        {
            get { return (int)(y1 - y); }
        }


    }
}
